<template>
  <view>
    <van-overlay :show="show">
      <view class="wrapper">
        <view class="loading">
          <van-loading size="40px" vertical type="spinner">加载中...</van-loading>
        </view>
      </view>
    </van-overlay>
  </view>
</template>

<script>
export default {
  props: ['show']
}
</script>

<style lang='scss' scoped>
.loading {
  top: 50%;
  left: 50%;
  margin-top: -34px;
  margin-left: -26px;
  position: absolute;
}
</style>